package com.third.customer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.third.customer.model.dao.param.AreaParam;
import com.third.customer.model.tables.Area;
import com.third.customer.service.data.AreaReq;

import java.util.List;

/**
 * Created by hehuaichun on 2020/5/23.
 */
public interface AreaService {

    Page<Area> list(AreaParam param);

    Area getById(Long companyId, Long areaId);

    Area create(Long companyId, AreaReq req);

    Area modify(Long companyId, Long areaId, AreaReq req);

    boolean delete(Long companyId, Long areaId);

    List<Area> getByIds(Long companyId, List<Long> areaIds);
}
